package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.dto.NewsDto;
import com.heima.model.media.dto.WmNewsDto;
import com.heima.model.media.dto.WmNewsPageReqDto;
import com.heima.model.media.pojos.WmNews;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {
    /**
     * 查询所有自媒体文章
     * @return
     */
    public ResponseResult<List<WmNews>> findAll(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult delete(Integer id);

    ResponseResult submitNews(WmNewsDto dto);

    ResponseResult downOrUp(NewsDto dto);

    ResponseResult<List<Integer>> findAllByStatus();
}
